const constentStr = 'hello world';
let direction: 'left' | 'right' | 'bottom' | 'top' = 'bottom';

// obj is type of { counter: number }
const obj = { counter: 0 };

///////////////////////////////////////////////

const req = { url: 'https://example.com/', method: 'GET' as const };

handleRequest(req.url, req.method);

function handleRequest(url: string, method: 'GET' | 'POST') {
    // ...
}

export {};